home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 66 65 65 64 2e 63 |Path: ne|wsfeed.c|
|00000010| 6f 6e 63 65 6e 74 72 69 | 63 2e 6e 65 74 21 6e 65 |oncentri|c.net!ne|
|00000020| 77 73 0a 46 72 6f 6d 3a | 20 22 41 6c 61 6e 20 4c |ws.From:| "Alan L|
|00000030| 2e 20 4c 6f 76 65 6a 6f | 79 22 20 3c 61 6c 6f 76 |. Lovejo|y" <alov|
|00000040| 65 6a 6f 79 40 63 6f 6e | 63 65 6e 74 72 69 63 2e |ejoy@con|centric.|
|00000050| 6e 65 74 3e 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |net>.New|sgroups:|
|00000060| 20 63 6f 6d 70 2e 6c 61 | 6e 67 2e 6a 61 76 61 2c | comp.la|ng.java,|
|00000070| 63 6f 6d 70 2e 6c 61 6e | 67 2e 63 2b 2b 2c 63 6f |comp.lan|g.c++,co|
|00000080| 6d 70 2e 6c 61 6e 67 2e | 73 6d 61 6c 6c 74 61 6c |mp.lang.|smalltal|
|00000090| 6b 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 41 |k.Subjec|t: Re: A|
|000000a0| 64 76 69 63 65 20 74 6f | 20 4a 61 76 61 20 70 72 |dvice to| Java pr|
|000000b0| 6f 70 6f 6e 65 6e 74 73 | 20 28 77 61 73 20 52 65 |oponents| (was Re|
|000000c0| 3a 20 57 69 6c 6c 20 4a | 61 76 61 20 6b 69 6c 6c |: Will J|ava kill|
|000000d0| 20 43 2b 2b 3f 29 0a 44 | 61 74 65 3a 20 46 72 69 | C++?).D|ate: Fri|
|000000e0| 2c 20 31 32 20 41 70 72 | 20 31 39 39 36 20 30 33 |, 12 Apr| 1996 03|
|000000f0| 3a 30 35 3a 30 34 20 2d | 30 37 30 30 0a 4f 72 67 |:05:04 -|0700.Org|
|00000100| 61 6e 69 7a 61 74 69 6f | 6e 3a 20 4d 6f 64 75 6c |anizatio|n: Modul|
|00000110| 61 74 69 6f 6e 0a 4d 65 | 73 73 61 67 65 2d 49 44 |ation.Me|ssage-ID|
|00000120| 3a 20 3c 33 31 36 45 32 | 41 44 30 2e 31 37 43 33 |: <316E2|AD0.17C3|
|00000130| 40 63 6f 6e 63 65 6e 74 | 72 69 63 2e 6e 65 74 3e |@concent|ric.net>|
|00000140| 0a 52 65 66 65 72 65 6e | 63 65 73 3a 20 3c 33 31 |.Referen|ces: <31|
|00000150| 35 42 46 42 31 36 2e 42 | 37 34 40 69 73 67 2e 64 |5BFB16.B|74@isg.d|
|00000160| 65 3e 20 3c 34 6a 67 76 | 36 74 24 68 6f 6e 40 6b |e> <4jgv|6t$hon@k|
|00000170| 61 64 61 74 68 2e 7a 65 | 69 74 67 65 69 73 74 2e |adath.ze|itgeist.|
|00000180| 6e 65 74 3e 20 3c 34 6b | 33 63 64 6f 24 6e 70 35 |net> <4k|3cdo$np5|
|00000190| 40 74 61 75 72 75 73 2e | 61 64 6e 63 2e 63 6f 6d |@taurus.|adnc.com|
|000001a0| 3e 20 3c 44 70 47 31 73 | 31 2e 47 43 39 40 72 65 |> <DpG1s|1.GC9@re|
|000001b0| 73 65 61 72 63 68 2e 61 | 74 74 2e 63 6f 6d 3e 20 |search.a|tt.com> |
|000001c0| 3c 34 6b 37 31 66 35 24 | 6f 74 35 40 6e 65 77 73 |<4k71f5$|ot5@news|
|000001d0| 32 2e 69 6f 73 2e 63 6f | 6d 3e 20 3c 33 31 36 38 |2.ios.co|m> <3168|
|000001e0| 34 46 33 33 2e 32 35 32 | 38 40 69 62 6d 2e 6e 65 |4F33.252|8@ibm.ne|
|000001f0| 74 3e 20 3c 64 65 6e 61 | 74 61 6c 65 2d 30 38 30 |t> <dena|tale-080|
|00000200| 34 39 36 30 39 32 36 32 | 35 30 30 30 31 40 67 72 |49609262|50001@gr|
|00000210| 61 69 6c 31 32 31 33 2e | 6e 61 6e 64 6f 2e 6e 65 |ail1213.|nando.ne|
|00000220| 74 3e 20 3c 33 31 36 44 | 41 32 31 33 2e 37 36 37 |t> <316D|A213.767|
|00000230| 42 40 76 64 63 2e 73 6d | 6f 73 2e 63 6f 6d 3e 0a |B@vdc.sm|os.com>.|
|00000240| 52 65 70 6c 79 2d 54 6f | 3a 20 61 6c 6f 76 65 6a |Reply-To|: alovej|
|00000250| 6f 79 40 63 6f 6e 63 65 | 6e 74 72 69 63 2e 6e 65 |oy@conce|ntric.ne|
|00000260| 74 0a 4e 4e 54 50 2d 50 | 6f 73 74 69 6e 67 2d 48 |t.NNTP-P|osting-H|
|00000270| 6f 73 74 3a 20 63 6e 63 | 30 30 39 30 33 32 2e 63 |ost: cnc|009032.c|
|00000280| 6f 6e 63 65 6e 74 72 69 | 63 2e 6e 65 74 0a 4d 69 |oncentri|c.net.Mi|
|00000290| 6d 65 2d 56 65 72 73 69 | 6f 6e 3a 20 31 2e 30 0a |me-Versi|on: 1.0.|
|000002a0| 43 6f 6e 74 65 6e 74 2d | 54 79 70 65 3a 20 74 65 |Content-|Type: te|
|000002b0| 78 74 2f 70 6c 61 69 6e | 3b 20 63 68 61 72 73 65 |xt/plain|; charse|
|000002c0| 74 3d 75 73 2d 61 73 63 | 69 69 0a 43 6f 6e 74 65 |t=us-asc|ii.Conte|
|000002d0| 6e 74 2d 54 72 61 6e 73 | 66 65 72 2d 45 6e 63 6f |nt-Trans|fer-Enco|
|000002e0| 64 69 6e 67 3a 20 37 62 | 69 74 0a 58 2d 4d 61 69 |ding: 7b|it.X-Mai|
|000002f0| 6c 65 72 3a 20 4d 6f 7a | 69 6c 6c 61 20 33 2e 30 |ler: Moz|illa 3.0|
|00000300| 42 32 20 28 57 69 6e 39 | 35 3b 20 49 29 0a 0a 47 |B2 (Win9|5; I)..G|
|00000310| 6f 72 64 20 57 61 69 74 | 20 77 72 6f 74 65 3a 0a |ord Wait| wrote:.|
|00000320| 3e 20 0a 3e 20 52 69 63 | 6b 20 44 65 4e 61 74 61 |> .> Ric|k DeNata|
|00000330| 6c 65 20 77 72 6f 74 65 | 3a 0a 3e 20 3e 0a 3e 20 |le wrote|:.> >.> |
|00000340| 3e 20 49 74 20 64 6f 65 | 73 6e 27 74 20 62 6f 64 |> It doe|sn't bod|
|00000350| 65 20 77 65 6c 6c 20 66 | 6f 72 20 74 68 65 20 75 |e well f|or the u|
|00000360| 6c 74 69 6d 61 74 65 20 | 66 61 74 65 20 6f 66 20 |ltimate |fate of |
|00000370| 61 20 6c 61 6e 67 75 61 | 67 65 20 77 68 65 6e 20 |a langua|ge when |
|00000380| 69 6d 70 6f 72 74 61 6e | 74 0a 3e 20 3e 20 74 68 |importan|t.> > th|
|00000390| 69 6e 67 73 20 74 68 61 | 74 20 70 65 6f 70 6c 65 |ings tha|t people|
|000003a0| 20 77 61 6e 74 20 74 6f | 20 64 6f 20 77 69 74 68 | want to| do with|
|000003b0| 20 74 68 65 20 6c 61 6e | 67 75 61 67 65 20 61 72 | the lan|guage ar|
|000003c0| 65 6e 27 74 20 70 72 6f | 76 69 64 65 64 20 69 6e |en't pro|vided in|
|000003d0| 0a 3e 20 3e 20 73 74 61 | 6e 64 61 72 64 20 77 61 |.> > sta|ndard wa|
|000003e0| 79 73 20 69 6e 20 74 68 | 65 20 6c 61 6e 67 75 61 |ys in th|e langua|
|000003f0| 67 65 2e 20 54 68 69 73 | 20 69 73 20 6f 6e 65 20 |ge. This| is one |
|00000400| 6f 66 20 74 68 65 20 72 | 65 61 73 6f 6e 73 20 74 |of the r|easons t|
|00000410| 68 61 74 20 77 65 20 64 | 6f 6e 27 74 0a 3e 20 3e |hat we d|on't.> >|
|00000420| 20 68 61 76 65 20 50 61 | 73 63 61 6c 20 74 6f 20 | have Pa|scal to |
|00000430| 6b 69 63 6b 20 61 72 6f | 75 6e 64 20 6d 75 63 68 |kick aro|und much|
|00000440| 20 61 6e 79 6d 6f 72 65 | 2c 20 6f 6e 65 20 6f 66 | anymore|, one of|
|00000450| 20 74 68 65 20 72 65 61 | 73 6f 6e 73 20 74 68 61 | the rea|sons tha|
|00000460| 74 20 43 20 74 6f 6f 6b | 0a 3e 20 3e 20 6f 76 65 |t C took|.> > ove|
|00000470| 72 20 50 61 73 63 61 6c | 27 73 20 70 72 65 64 6f |r Pascal|'s predo|
|00000480| 6d 69 6e 61 6e 74 20 70 | 6c 61 63 65 20 61 73 20 |minant p|lace as |
|00000490| 61 20 70 65 72 73 6f 6e | 61 6c 20 63 6f 6d 70 75 |a person|al compu|
|000004a0| 74 65 72 20 70 72 6f 67 | 72 61 6d 6d 69 6e 67 0a |ter prog|ramming.|
|000004b0| 3e 20 3e 20 6c 61 6e 67 | 75 61 67 65 20 69 73 20 |> > lang|uage is |
|000004c0| 74 68 61 74 20 50 61 73 | 63 61 6c 20 6c 65 66 74 |that Pas|cal left|
|000004d0| 20 61 6e 79 20 6b 69 6e | 64 20 6f 66 20 72 65 61 | any kin|d of rea|
|000004e0| 73 6f 6e 61 62 6c 65 20 | 49 2f 4f 20 61 73 20 61 |sonable |I/O as a|
|000004f0| 6e 20 65 78 65 72 63 69 | 73 65 20 74 6f 0a 3e 20 |n exerci|se to.> |
|00000500| 3e 20 74 68 65 20 72 65 | 61 64 65 72 2c 20 61 6e |> the re|ader, an|
|00000510| 64 20 74 68 65 72 65 20 | 77 61 73 20 6e 6f 20 63 |d there |was no c|
|00000520| 6f 6d 6d 6f 6e 20 77 61 | 79 20 6f 66 20 64 6f 69 |ommon wa|y of doi|
|00000530| 6e 67 20 69 74 2c 20 77 | 68 69 6c 65 20 43 27 73 |ng it, w|hile C's|
|00000540| 20 28 61 63 74 75 61 6c | 6c 79 0a 3e 20 3e 20 55 | (actual|ly.> > U|
|00000550| 6e 69 78 27 73 29 20 73 | 74 64 69 6f 20 70 61 63 |nix's) s|tdio pac|
|00000560| 6b 61 67 65 20 77 61 73 | 20 65 61 73 69 6c 79 20 |kage was| easily |
|00000570| 73 75 70 70 6f 72 74 65 | 64 20 6f 6e 20 6d 6f 73 |supporte|d on mos|
|00000580| 74 20 6f 66 20 74 68 65 | 20 63 6f 6d 6d 6f 6e 20 |t of the| common |
|00000590| 6f 70 65 72 61 74 69 6e | 67 0a 3e 20 3e 20 73 79 |operatin|g.> > sy|
|000005a0| 73 74 65 6d 73 2e 0a 3e | 20 0a 3e 20 49 20 74 65 |stems..>| .> I te|
|000005b0| 6e 64 20 74 6f 20 66 65 | 65 6c 20 74 68 69 73 20 |nd to fe|el this |
|000005c0| 77 61 79 20 61 62 6f 75 | 74 20 74 68 65 20 41 57 |way abou|t the AW|
|000005d0| 54 20 70 6f 72 74 69 6f | 6e 20 6f 66 20 4a 61 76 |T portio|n of Jav|
|000005e0| 61 3a 20 6f 6e 65 20 77 | 65 65 6b 20 69 6e 74 6f |a: one w|eek into|
|000005f0| 20 74 68 65 0a 3e 20 6c | 61 6e 67 75 61 67 65 20 | the.> l|anguage |
|00000600| 61 6e 64 20 79 6f 75 20 | 67 65 74 20 74 68 65 20 |and you |get the |
|00000610| 75 72 67 65 20 74 6f 20 | 74 6f 73 73 20 6f 75 74 |urge to |toss out|
|00000620| 20 41 57 54 20 61 6e 64 | 20 72 6f 6c 6c 20 79 6f | AWT and| roll yo|
|00000630| 75 72 20 6f 77 6e 20 55 | 49 0a 3e 20 63 6c 61 73 |ur own U|I.> clas|
|00000640| 73 65 73 2e 20 28 44 6f | 6e 27 74 20 64 6f 20 69 |ses. (Do|n't do i|
|00000650| 74 21 21 20 70 65 73 74 | 65 72 20 74 68 65 20 4a |t!! pest|er the J|
|00000660| 61 76 61 73 6f 66 74 20 | 70 65 6f 70 6c 65 20 74 |avasoft |people t|
|00000670| 6f 20 66 69 78 20 41 57 | 54 20 71 75 69 63 6b 6c |o fix AW|T quickl|
|00000680| 79 21 29 0a 3e 20 0a 3e | 20 4f 6e 65 20 74 68 69 |y!).> .>| One thi|
|00000690| 6e 67 20 6e 69 63 65 20 | 69 6e 20 74 68 65 20 6c |ng nice |in the l|
|000006a0| 61 6e 67 75 61 67 65 20 | 69 73 20 74 68 65 20 65 |anguage |is the e|
|000006b0| 61 73 79 20 54 43 50 2f | 49 50 20 68 6f 6f 6b 73 |asy TCP/|IP hooks|
|000006c0| 20 61 6c 72 65 61 64 79 | 20 74 68 65 72 65 21 0a | already| there!.|
|000006d0| 3e 20 53 69 6e 63 65 20 | 74 68 65 20 62 61 73 65 |> Since |the base|
|000006e0| 20 6c 69 62 72 61 72 79 | 20 73 65 74 20 61 6c 72 | library| set alr|
|000006f0| 65 61 64 79 20 69 6e 63 | 6c 75 64 65 73 20 22 65 |eady inc|ludes "e|
|00000700| 61 73 79 22 20 54 43 50 | 2f 49 50 20 73 75 70 70 |asy" TCP|/IP supp|
|00000710| 6f 72 74 2c 20 6a 61 76 | 61 0a 3e 20 6a 75 73 74 |ort, jav|a.> just|
|00000720| 20 6d 69 67 68 74 20 6c | 69 76 65 20 75 70 20 74 | might l|ive up t|
|00000730| 6f 20 74 68 65 20 74 69 | 74 6c 65 20 6f 66 20 6b |o the ti|tle of k|
|00000740| 69 6e 67 20 6f 66 20 74 | 68 65 20 22 6e 65 74 77 |ing of t|he "netw|
|00000750| 6f 72 6b 69 6e 67 22 20 | 6c 61 6e 67 75 61 67 65 |orking" |language|
|00000760| 73 2e 2e 0a 3e 20 0a 3e | 20 41 73 20 66 6f 72 20 |s...> .>| As for |
|00000770| 6e 6f 6e 2d 6e 65 74 77 | 6f 72 6b 65 64 20 74 61 |non-netw|orked ta|
|00000780| 73 6b 73 2c 20 4a 61 76 | 61 20 72 65 61 6c 6c 79 |sks, Jav|a really|
|00000790| 20 6e 65 65 64 73 20 77 | 6f 72 6b 20 74 6f 20 63 | needs w|ork to c|
|000007a0| 6f 6d 70 65 74 65 20 77 | 69 74 68 20 74 68 65 0a |ompete w|ith the.|
|000007b0| 3e 20 65 73 74 61 62 6c | 69 73 68 65 64 20 6c 61 |> establ|ished la|
|000007c0| 6e 67 75 61 67 65 73 20 | 28 74 6f 6f 6c 73 2c 20 |nguages |(tools, |
|000007d0| 53 74 61 6e 64 61 72 64 | 20 6c 69 62 73 20 65 74 |Standard| libs et|
|000007e0| 63 29 2e 0a 3e 20 0a 3e | 20 47 6f 72 64 20 57 61 |c)..> .>| Gord Wa|
|000007f0| 69 74 20 20 20 20 20 20 | 20 53 2d 4d 4f 53 20 53 |it | S-MOS S|
|00000800| 79 73 74 65 6d 73 20 56 | 61 6e 63 6f 75 76 65 72 |ystems V|ancouver|
|00000810| 20 44 65 73 69 67 6e 20 | 43 65 6e 74 72 65 0a 3e | Design |Centre.>|
|00000820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000830| 20 28 42 2e 43 2e 20 43 | 61 6e 61 64 61 20 65 68 | (B.C. C|anada eh|
|00000840| 21 29 0a 3e 20 67 6f 72 | 64 40 76 64 63 2e 73 6d |!).> gor|d@vdc.sm|
|00000850| 6f 73 2e 63 6f 6d 0a 3e | 20 0a 3e 20 2d 2d 2d 2d |os.com.>| .> ----|
|00000860| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0a 3e 20 54 68 |--------|---.> Th|
|00000870| 69 73 20 73 69 67 20 69 | 73 20 75 6e 64 65 72 20 |is sig i|s under |
|00000880| 63 6f 6e 73 74 72 75 0a | 0a 50 72 6f 75 64 20 6f |constru.|.Proud o|
|00000890| 66 20 74 68 65 20 6e 65 | 74 77 6f 72 6b 69 6e 67 |f the ne|tworking|
|000008a0| 20 66 75 6e 63 74 69 6f | 6e 73 20 69 6e 20 74 68 | functio|ns in th|
|000008b0| 65 20 4a 61 76 61 20 6c | 69 62 72 61 72 79 2c 20 |e Java l|ibrary, |
|000008c0| 61 72 65 20 77 65 3f 0a | 0a 56 69 73 75 61 6c 57 |are we?.|.VisualW|
|000008d0| 6f 72 6b 73 20 53 6d 61 | 6c 6c 74 61 6c 6b 20 68 |orks Sma|lltalk h|
|000008e0| 61 73 20 68 61 64 20 73 | 75 63 68 20 66 6f 72 20 |as had s|uch for |
|000008f0| 71 75 69 74 65 20 61 20 | 77 68 69 6c 65 20 6e 6f |quite a |while no|
|00000900| 77 2e 20 20 43 6f 6e 73 | 69 64 65 72 0a 6f 6e 65 |w. Cons|ider.one|
|00000910| 20 6f 66 20 74 68 65 20 | 65 78 61 6d 70 6c 65 20 | of the |example |
|00000920| 63 6c 61 73 73 20 6d 65 | 74 68 6f 64 73 20 6f 66 |class me|thods of|
|00000930| 20 74 68 65 20 63 6c 61 | 73 73 20 53 6f 63 6b 65 | the cla|ss Socke|
|00000940| 74 41 63 63 65 73 73 6f | 72 20 28 74 68 65 0a 6f |tAccesso|r (the.o|
|00000950| 74 68 65 72 20 65 78 61 | 6d 70 6c 65 73 20 73 68 |ther exa|mples sh|
|00000960| 6f 77 20 61 20 73 69 6d | 70 6c 65 20 73 65 72 76 |ow a sim|ple serv|
|00000970| 65 72 20 61 6e 64 20 61 | 20 73 69 6d 70 6c 65 20 |er and a| simple |
|00000980| 63 6c 69 65 6e 74 2c 20 | 61 6e 64 20 61 20 73 69 |client, |and a si|
|00000990| 6d 70 6c 65 0a 74 61 6c | 6b 20 73 65 72 76 65 72 |mple.tal|k server|
|000009a0| 20 61 6e 64 20 74 61 6c | 6b 20 63 6c 69 65 6e 74 | and tal|k client|
|000009b0| 29 3a 0a 0a 53 6f 63 6b | 65 74 41 63 63 65 73 73 |):..Sock|etAccess|
|000009c0| 6f 72 20 63 6c 61 73 73 | 3e 3e 72 65 71 75 65 73 |or class|>>reques|
|000009d0| 74 54 69 6d 65 53 65 72 | 76 69 63 65 0a 09 22 54 |tTimeSer|vice.."T|
|000009e0| 68 69 73 20 65 78 61 6d | 70 6c 65 20 75 73 65 73 |his exam|ple uses|
|000009f0| 20 74 68 65 20 49 50 2f | 55 44 50 20 74 69 6d 65 | the IP/|UDP time|
|00000a00| 20 73 65 72 76 69 63 65 | 2c 20 77 68 69 63 68 20 | service|, which |
|00000a10| 72 65 74 75 72 6e 73 20 | 74 68 65 20 0a 09 74 69 |returns |the ..ti|
|00000a20| 6d 65 20 69 6e 20 73 65 | 63 6f 6e 64 73 20 73 69 |me in se|conds si|
|00000a30| 6e 63 65 20 4a 61 6e 20 | 31 2c 20 31 39 30 30 20 |nce Jan |1, 1900 |
|00000a40| 61 73 20 61 20 66 6f 75 | 72 2d 62 79 74 65 20 69 |as a fou|r-byte i|
|00000a50| 6e 74 65 67 65 72 2e 20 | 0a 09 54 68 75 73 2c 20 |nteger. |..Thus, |
|00000a60| 77 65 20 61 72 65 20 64 | 65 6d 6f 6e 73 74 72 61 |we are d|emonstra|
|00000a70| 74 69 6e 67 20 72 61 77 | 20 61 63 63 65 73 73 20 |ting raw| access |
|00000a80| 74 68 72 6f 75 67 68 20 | 61 20 73 6f 63 6b 65 74 |through |a socket|
|00000a90| 20 69 6e 73 74 65 61 64 | 0a 09 6f 66 20 75 73 69 | instead|..of usi|
|00000aa0| 6e 67 20 61 6e 20 65 78 | 74 65 72 6e 61 6c 20 73 |ng an ex|ternal s|
|00000ab0| 74 72 65 61 6d 2e 20 20 | 57 65 20 65 78 70 6c 69 |tream. |We expli|
|00000ac0| 63 69 74 6c 79 20 63 6f | 6e 76 65 72 74 20 74 68 |citly co|nvert th|
|00000ad0| 65 20 72 61 77 20 72 65 | 73 75 6c 74 0a 09 61 6e |e raw re|sult..an|
|00000ae0| 64 20 70 72 69 6e 74 20 | 69 74 20 69 6e 20 74 68 |d print |it in th|
|00000af0| 65 20 74 72 61 6e 73 63 | 72 69 70 74 2e 20 57 65 |e transc|ript. We|
|00000b00| 20 61 73 73 75 6d 65 20 | 74 68 61 74 20 61 20 74 | assume |that a t|
|00000b10| 69 6d 65 20 73 65 72 76 | 65 72 20 69 73 20 0a 09 |ime serv|er is ..|
|00000b20| 72 75 6e 6e 69 6e 67 20 | 6f 6e 20 74 68 65 20 68 |running |on the h|
|00000b30| 6f 73 74 20 74 68 61 74 | 20 79 6f 75 20 6e 61 6d |ost that| you nam|
|00000b40| 65 2e 22 0a 0a 09 22 5b | 53 6f 63 6b 65 74 41 63 |e."..."[|SocketAc|
|00000b50| 63 65 73 73 6f 72 20 72 | 65 71 75 65 73 74 54 69 |cessor r|equestTi|
|00000b60| 6d 65 53 65 72 76 69 63 | 65 5d 20 3c 2d 2d 20 74 |meServic|e] <-- t|
|00000b70| 6f 20 72 75 6e 20 74 68 | 65 20 65 78 61 6d 70 6c |o run th|e exampl|
|00000b80| 65 22 0a 0a 09 7c 20 73 | 6f 63 6b 65 74 20 61 64 |e"...| s|ocket ad|
|00000b90| 64 72 65 73 73 20 62 75 | 66 66 65 72 20 72 65 70 |dress bu|ffer rep|
|00000ba0| 6c 79 53 69 7a 65 20 68 | 6f 73 74 20 74 69 6d 65 |lySize h|ost time|
|00000bb0| 20 7c 0a 0a 09 22 47 65 | 74 20 74 68 65 20 68 6f | |..."Ge|t the ho|
|00000bc0| 73 74 20 6e 61 6d 65 20 | 66 72 6f 6d 20 74 68 65 |st name |from the|
|00000bd0| 20 75 73 65 72 2e 22 0a | 09 68 6f 73 74 20 3a 3d | user.".|.host :=|
|00000be0| 20 44 69 61 6c 6f 67 0a | 09 09 72 65 71 75 65 73 | Dialog.|..reques|
|00000bf0| 74 3a 20 27 57 68 69 63 | 68 20 68 6f 73 74 20 69 |t: 'Whic|h host i|
|00000c00| 73 20 72 75 6e 6e 69 6e | 67 20 61 20 74 69 6d 65 |s runnin|g a time|
|00000c10| 20 73 65 72 76 65 72 3f | 27 0a 09 09 69 6e 69 74 | server?|'...init|
|00000c20| 69 61 6c 41 6e 73 77 65 | 72 3a 20 27 6c 6f 63 61 |ialAnswe|r: 'loca|
|00000c30| 6c 68 6f 73 74 27 2e 0a | 0a 09 22 43 72 65 61 74 |lhost'..|.."Creat|
|00000c40| 65 20 61 20 64 61 74 61 | 67 72 61 6d 20 73 6f 63 |e a data|gram soc|
|00000c50| 6b 65 74 2e 22 0a 09 73 | 6f 63 6b 65 74 20 3a 3d |ket."..s|ocket :=|
|00000c60| 20 53 6f 63 6b 65 74 41 | 63 63 65 73 73 6f 72 20 | SocketA|ccessor |
|00000c70| 6e 65 77 55 44 50 2e 0a | 0a 09 22 54 68 65 20 66 |newUDP..|.."The f|
|00000c80| 6f 6c 6c 6f 77 69 6e 67 | 20 69 73 20 6b 65 70 74 |ollowing| is kept|
|00000c90| 20 69 6e 20 61 6e 20 75 | 6e 77 69 6e 64 20 62 6c | in an u|nwind bl|
|00000ca0| 6f 63 6b 20 69 6e 20 63 | 61 73 65 20 61 6e 20 65 |ock in c|ase an e|
|00000cb0| 78 63 65 70 74 69 6f 6e | 20 69 73 20 0a 72 61 69 |xception| is .rai|
|00000cc0| 73 65 64 2e 22 0a 09 5b | 0a 09 09 22 42 69 6e 64 |sed."..[|..."Bind|
|00000cd0| 20 74 68 65 20 73 6f 63 | 6b 65 74 20 74 6f 20 74 | the soc|ket to t|
|00000ce0| 68 65 20 73 65 72 76 65 | 72 27 73 20 61 64 64 72 |he serve|r's addr|
|00000cf0| 65 73 73 2e 22 0a 09 09 | 61 64 64 72 65 73 73 20 |ess."...|address |
|00000d00| 3a 3d 20 49 50 53 6f 63 | 6b 65 74 41 64 64 72 65 |:= IPSoc|ketAddre|
|00000d10| 73 73 0a 09 09 09 68 6f | 73 74 4e 61 6d 65 3a 20 |ss....ho|stName: |
|00000d20| 68 6f 73 74 0a 09 09 09 | 70 6f 72 74 3a 20 28 49 |host....|port: (I|
|00000d30| 50 53 6f 63 6b 65 74 41 | 64 64 72 65 73 73 20 73 |PSocketA|ddress s|
|00000d40| 65 72 76 69 63 65 50 6f | 72 74 42 79 4e 61 6d 65 |ervicePo|rtByName|
|00000d50| 3a 20 27 74 69 6d 65 27 | 29 2e 0a 09 09 73 6f 63 |: 'time'|)....soc|
|00000d60| 6b 65 74 20 63 6f 6e 6e | 65 63 74 54 6f 3a 20 61 |ket conn|ectTo: a|
|00000d70| 64 64 72 65 73 73 2e 0a | 09 0a 09 09 22 41 6e 79 |ddress..|...."Any|
|00000d80| 20 6d 65 73 73 61 67 65 | 20 77 69 6c 6c 20 74 72 | message| will tr|
|00000d90| 69 67 67 65 72 20 74 68 | 65 20 74 69 6d 65 20 73 |igger th|e time s|
|00000da0| 65 72 76 65 72 2e 22 0a | 09 09 73 6f 63 6b 65 74 |erver.".|..socket|
|00000db0| 20 77 72 69 74 65 41 6c | 6c 3a 20 27 57 68 61 74 | writeAl|l: 'What|
|00000dc0| 20 74 69 6d 65 20 69 73 | 20 69 74 3f 27 2e 0a 0a | time is| it?'...|
|00000dd0| 09 09 22 49 6e 69 74 69 | 61 6c 69 7a 65 20 74 68 |.."Initi|alize th|
|00000de0| 65 20 62 75 66 66 65 72 | 20 66 6f 72 20 61 20 66 |e buffer| for a f|
|00000df0| 6f 75 72 2d 62 79 74 65 | 20 72 65 73 70 6f 6e 73 |our-byte| respons|
|00000e00| 65 2e 22 0a 09 09 62 75 | 66 66 65 72 20 3a 3d 20 |e."...bu|ffer := |
|00000e10| 42 79 74 65 41 72 72 61 | 79 20 6e 65 77 3a 20 34 |ByteArra|y new: 4|
|00000e20| 2e 0a 0a 09 09 22 47 65 | 74 20 74 68 65 20 72 61 |....."Ge|t the ra|
|00000e30| 77 20 74 69 6d 65 20 66 | 72 6f 6d 20 74 68 65 20 |w time f|rom the |
|00000e40| 73 65 72 76 65 72 20 2d | 2d 20 74 69 6d 65 6f 75 |server -|- timeou|
|00000e50| 74 20 61 66 74 65 72 20 | 31 30 20 73 65 63 6f 6e |t after |10 secon|
|00000e60| 64 73 2e 22 0a 09 09 28 | 73 6f 63 6b 65 74 20 72 |ds."...(|socket r|
|00000e70| 65 61 64 57 61 69 74 57 | 69 74 68 54 69 6d 65 6f |eadWaitW|ithTimeo|
|00000e80| 75 74 4d 73 3a 20 31 30 | 30 30 30 29 20 0a 09 09 |utMs: 10|000) ...|
|00000e90| 09 69 66 46 61 6c 73 65 | 3a 20 5b 72 65 70 6c 79 |.ifFalse|: [reply|
|00000ea0| 53 69 7a 65 20 3a 3d 20 | 73 6f 63 6b 65 74 20 72 |Size := |socket r|
|00000eb0| 65 61 64 49 6e 74 6f 3a | 20 62 75 66 66 65 72 5d |eadInto:| buffer]|
|00000ec0| 0a 09 09 09 69 66 54 72 | 75 65 3a 20 5b 54 72 61 |....ifTr|ue: [Tra|
|00000ed0| 6e 73 63 72 69 70 74 20 | 63 72 3b 20 6e 65 78 74 |nscript |cr; next|
|00000ee0| 50 75 74 41 6c 6c 3a 20 | 27 4e 6f 20 72 65 70 6c |PutAll: |'No repl|
|00000ef0| 79 27 2e 20 5e 6e 69 6c | 5d 0a 0a 09 5d 20 76 61 |y'. ^nil|]...] va|
|00000f00| 6c 75 65 4e 6f 77 4f 72 | 4f 6e 55 6e 77 69 6e 64 |lueNowOr|OnUnwind|
|00000f10| 44 6f 3a 20 5b 73 6f 63 | 6b 65 74 20 63 6c 6f 73 |Do: [soc|ket clos|
|00000f20| 65 5d 2e 0a 09 22 49 66 | 20 74 68 65 20 73 74 61 |e]..."If| the sta|
|00000f30| 63 6b 20 69 73 20 75 6e | 77 6f 75 6e 64 20 64 75 |ck is un|wound du|
|00000f40| 65 20 74 6f 20 61 6e 20 | 65 72 72 6f 72 2c 20 6f |e to an |error, o|
|00000f50| 72 20 74 68 65 20 62 6c | 6f 63 6b 20 74 65 72 6d |r the bl|ock term|
|00000f60| 69 6e 61 74 65 73 0a 09 | 6e 6f 72 6d 61 6c 6c 79 |inates..|normally|
|00000f70| 2c 20 74 68 65 20 73 6f | 63 6b 65 74 20 77 69 6c |, the so|cket wil|
|00000f80| 6c 20 62 65 20 63 6c 6f | 73 65 64 20 69 6e 20 65 |l be clo|sed in e|
|00000f90| 69 74 68 65 72 20 63 61 | 73 65 2e 22 0a 0a 09 72 |ither ca|se."...r|
|00000fa0| 65 70 6c 79 53 69 7a 65 | 20 3d 20 34 0a 0a 09 09 |eplySize| = 4....|
|00000fb0| 22 49 66 20 66 6f 75 72 | 20 62 79 74 65 73 20 77 |"If four| bytes w|
|00000fc0| 65 72 65 20 72 65 74 75 | 72 6e 65 64 2c 20 63 6f |ere retu|rned, co|
|00000fd0| 6e 76 65 72 74 20 74 6f | 20 74 69 6d 65 20 61 6e |nvert to| time an|
|00000fe0| 64 20 64 69 73 70 6c 61 | 79 20 69 74 2e 22 0a 09 |d displa|y it."..|
|00000ff0| 09 69 66 54 72 75 65 3a | 20 5b 0a 09 09 09 0a 09 |.ifTrue:| [......|
|00001000| 09 09 22 43 6f 6e 76 65 | 72 74 20 74 68 65 20 62 |.."Conve|rt the b|
|00001010| 79 74 65 20 61 72 72 61 | 79 20 74 6f 20 61 6e 20 |yte arra|y to an |
|00001020| 69 6e 74 65 67 65 72 20 | 28 73 65 63 6f 6e 64 73 |integer |(seconds|
|00001030| 20 73 69 6e 63 65 20 0a | 31 39 30 30 29 2e 22 0a | since .|1900).".|
|00001040| 09 09 09 74 69 6d 65 20 | 3a 3d 20 28 55 6e 69 6e |...time |:= (Unin|
|00001050| 74 65 72 70 72 65 74 65 | 64 42 79 74 65 73 20 66 |terprete|dBytes f|
|00001060| 72 6f 6d 3a 20 62 75 66 | 66 65 72 29 0a 09 09 09 |rom: buf|fer)....|
|00001070| 09 75 6e 73 69 67 6e 65 | 64 4c 6f 6e 67 41 74 3a |.unsigne|dLongAt:|
|00001080| 20 31 0a 09 09 09 09 62 | 69 67 45 6e 64 69 61 6e | 1.....b|igEndian|
|00001090| 3a 20 74 72 75 65 2e 0a | 0a 09 09 09 22 43 6f 6e |: true..|...."Con|
|000010a0| 76 65 72 74 20 74 68 65 | 20 69 6e 74 65 67 65 72 |vert the| integer|
|000010b0| 20 74 6f 20 74 69 6d 65 | 2e 0a 09 09 09 53 75 62 | to time|.....Sub|
|000010c0| 74 72 61 63 74 20 6f 6e | 65 20 79 65 61 72 20 28 |tract on|e year (|
|000010d0| 53 6d 61 6c 6c 74 61 6c | 6b 20 74 69 6d 65 20 62 |Smalltal|k time b|
|000010e0| 65 67 69 6e 73 20 69 6e | 20 31 39 30 31 29 2e 22 |egins in| 1901)."|
|000010f0| 0a 09 09 09 74 69 6d 65 | 20 3a 3d 20 54 69 6d 65 |....time| := Time|
|00001100| 20 61 54 69 6d 65 53 74 | 72 69 6e 67 3a 20 74 69 | aTimeSt|ring: ti|
|00001110| 6d 65 20 2d 20 28 36 30 | 2a 36 30 2a 32 34 2a 33 |me - (60|*60*24*3|
|00001120| 36 35 29 2e 0a 0a 09 09 | 09 22 44 69 73 70 6c 61 |65).....|."Displa|
|00001130| 79 20 74 68 65 20 74 69 | 6d 65 2e 22 0a 09 09 09 |y the ti|me."....|
|00001140| 54 72 61 6e 73 63 72 69 | 70 74 20 63 72 3b 20 6e |Transcri|pt cr; n|
|00001150| 65 78 74 50 75 74 41 6c | 6c 3a 20 27 54 68 65 20 |extPutAl|l: 'The |
|00001160| 73 65 72 76 65 72 27 27 | 73 20 63 6c 6f 63 6b 20 |server''|s clock |
|00001170| 73 61 79 73 3a 20 27 2c | 20 0a 74 69 6d 65 5d 0a |says: ',| .time].|
|00001180| 0a 09 09 22 49 66 20 66 | 6f 75 72 20 62 79 74 65 |..."If f|our byte|
|00001190| 73 20 77 65 72 65 20 6e | 6f 74 20 72 65 74 75 72 |s were n|ot retur|
|000011a0| 6e 65 64 2c 20 69 74 27 | 73 20 65 69 74 68 65 72 |ned, it'|s either|
|000011b0| 20 6e 6f 74 68 69 6e 67 | 20 28 7a 65 72 6f 29 20 | nothing| (zero) |
|000011c0| 6f 72 20 0a 69 6e 76 61 | 6c 69 64 2e 22 0a 09 09 |or .inva|lid."...|
|000011d0| 69 66 46 61 6c 73 65 3a | 20 5b 0a 09 09 09 72 65 |ifFalse:| [....re|
|000011e0| 70 6c 79 53 69 7a 65 20 | 3d 20 30 0a 09 09 09 09 |plySize |= 0.....|
|000011f0| 69 66 54 72 75 65 3a 20 | 5b 54 72 61 6e 73 63 72 |ifTrue: |[Transcr|
|00001200| 69 70 74 20 63 72 3b 20 | 6e 65 78 74 50 75 74 41 |ipt cr; |nextPutA|
|00001210| 6c 6c 3a 20 27 4e 6f 20 | 0a 72 65 73 70 6f 6e 73 |ll: 'No |.respons|
|00001220| 65 27 5d 0a 09 09 09 09 | 69 66 46 61 6c 73 65 3a |e'].....|ifFalse:|
|00001230| 20 5b 54 72 61 6e 73 63 | 72 69 70 74 20 63 72 3b | [Transc|ript cr;|
|00001240| 20 6e 65 78 74 50 75 74 | 41 6c 6c 3a 20 27 49 6e | nextPut|All: 'In|
|00001250| 76 61 6c 69 64 20 0a 72 | 65 70 6c 79 20 66 6f 72 |valid .r|eply for|
|00001260| 6d 61 74 27 5d 5d 2e 0a | 09 54 72 61 6e 73 63 72 |mat']]..|.Transcr|
|00001270| 69 70 74 20 65 6e 64 45 | 6e 74 72 79 0a 0a 0a 49 |ipt endE|ntry...I|
|00001280| 20 62 65 6c 69 65 76 65 | 20 69 74 20 77 61 73 20 | believe| it was |
|00001290| 61 74 20 4f 4f 50 53 4c | 41 20 27 38 37 20 69 6e |at OOPSL|A '87 in|
|000012a0| 20 4f 72 6c 61 6e 64 6f | 20 74 68 61 74 20 49 20 | Orlando| that I |
|000012b0| 66 69 72 73 74 20 73 61 | 77 20 53 6d 61 6c 6c 74 |first sa|w Smallt|
|000012c0| 61 6c 6b 20 70 72 6f 63 | 65 73 73 65 73 0a 6f 6e |alk proc|esses.on|
|000012d0| 20 64 69 66 66 65 72 65 | 6e 74 20 77 6f 72 6b 73 | differe|nt works|
|000012e0| 74 61 74 69 6f 6e 73 20 | 63 6f 6e 6e 65 63 74 65 |tations |connecte|
|000012f0| 64 20 74 6f 20 61 20 4c | 41 4e 20 75 73 69 6e 67 |d to a L|AN using|
|00001300| 20 73 6f 63 6b 65 74 73 | 20 74 6f 20 73 69 6d 75 | sockets| to simu|
|00001310| 6c 61 74 65 20 61 20 62 | 61 6c 6c 0a 74 72 61 76 |late a b|all.trav|
|00001320| 65 6c 69 6e 67 20 66 72 | 6f 6d 20 6f 6e 65 20 73 |eling fr|om one s|
|00001330| 63 72 65 65 6e 20 74 6f | 20 74 68 65 20 6e 65 78 |creen to| the nex|
|00001340| 74 2e 20 20 54 68 61 74 | 27 73 20 38 2e 35 20 79 |t. That|'s 8.5 y|
|00001350| 65 61 72 73 20 61 67 6f | 2e 20 20 41 74 20 74 68 |ears ago|. At th|
|00001360| 65 20 74 69 6d 65 2c 0a | 49 20 77 61 73 20 77 6f |e time,.|I was wo|
|00001370| 72 6b 69 6e 67 20 6f 6e | 20 61 20 6e 65 74 77 6f |rking on| a netwo|
|00001380| 72 6b 20 6d 61 6e 61 67 | 65 6d 65 6e 74 20 73 79 |rk manag|ement sy|
|00001390| 73 74 65 6d 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 |stem imp|lemented|
|000013a0| 20 69 6e 20 53 6d 61 6c | 6c 74 61 6c 6b 20 61 6e | in Smal|ltalk an|
|000013b0| 64 0a 4f 62 6a 65 63 74 | 69 76 65 2d 43 2e 20 20 |d.Object|ive-C. |
|000013c0| 54 68 65 20 53 6d 61 6c | 6c 74 61 6c 6b 20 63 6c |The Smal|ltalk cl|
|000013d0| 69 65 6e 74 73 20 65 78 | 63 68 61 6e 67 65 64 20 |ients ex|changed |
|000013e0| 6f 62 6a 65 63 74 73 20 | 77 69 74 68 20 74 68 65 |objects |with the|
|000013f0| 20 4f 62 6a 65 63 74 69 | 76 65 2d 43 0a 73 65 76 | Objecti|ve-C.sev|
|00001400| 65 72 20 73 79 73 74 65 | 6d 2d 2d 75 73 69 6e 67 |er syste|m--using|
|00001410| 20 54 50 43 2f 49 50 20 | 6f 76 65 72 20 45 74 68 | TPC/IP |over Eth|
|00001420| 65 72 6e 65 74 2e 20 20 | 49 27 6d 20 67 6c 61 64 |ernet. |I'm glad|
|00001430| 20 74 68 61 74 20 4a 61 | 76 61 20 77 69 6c 6c 20 | that Ja|va will |
|00001440| 66 69 6e 61 6c 6c 79 0a | 66 6f 72 63 65 20 65 76 |finally.|force ev|
|00001450| 65 72 79 6f 6e 65 20 74 | 6f 20 70 75 74 20 74 68 |eryone t|o put th|
|00001460| 69 73 20 66 75 6e 63 74 | 69 6f 6e 61 6c 69 74 79 |is funct|ionality|
|00001470| 20 69 6e 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 | in the |standard|
|00001480| 20 70 61 63 6b 61 67 65 | 2e 0a 0a 49 20 77 6f 6e | package|...I won|
|00001490| 64 65 72 20 68 6f 77 20 | 65 61 73 79 20 74 68 69 |der how |easy thi|
|000014a0| 73 20 73 74 75 66 66 20 | 69 73 20 69 6e 20 54 65 |s stuff |is in Te|
|000014b0| 6c 65 73 63 72 69 70 74 | 3f 20 20 0a 0a 2d 2d 41 |lescript|? ..--A|
|000014c0| 6c 61 6e 0a | |lan. | |
+--------+-------------------------+-------------------------+--------+--------+